/*
 * Powered By XY
 * Since 2020
 */

package com.xy.tool.concurrent.locks.rdb.dao;

import com.xy.tool.concurrent.locks.rdb.domain.po.DisLockPO;

/**
 * 
 * 
 * @author zsp
 * @date 2020-8-18
 */
public interface DisLockDao {
	
	/**
	 * 保存
	 *
	 * @param disLockPO
	 */
	int saveDisLock(DisLockPO disLockPO);
	
	/**
	 * 删除
	 *
	 * @param disLockId
	 */
	int deleteDisLock(Long disLockId);
	
	/**
	 * 查找一个
	 *
	 * @param tenantId
	 * @param resource
	 * @return
	 */
	DisLockPO getDisLock(Long tenantId, String resource);
	
}
